package com.yanqu.road.server.cmd.activity.channelmusicroomrank.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ChannelMusicRoomRankProto;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;

import com.yanqu.road.server.gameplayer.module.channelmusicroom.ChannelMusicRoomRankActivityModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_CHANNEL_MUSIC_ROOM_RANK_JOIN_CROSS_BACK, desc = "妙音坊冲榜 参赛结果返回")
public class ChannelMusicRoomRankJoinShowCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ChannelMusicRoomRankProto.CrossChannelMusicRoomRankJoinShowBackMsg backMsg = ChannelMusicRoomRankProto.CrossChannelMusicRoomRankJoinShowBackMsg.parseFrom(packet.getBytes());
        player.getModule(ChannelMusicRoomRankActivityModule.class).joinShowCrossBack(backMsg);
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
